package com.example.mymatch.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 请假实体类
 * 编写者：杨滢
 */

public class Leave {
    private int id;
    private int leaveId;
    private String leaveName;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date leaveStart;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date leaveEnd;
    private String leaveReason;
    private String leavePerson;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date leaveTime;

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public int getLeaveId() {
        return leaveId;
    }
    public void setLeaveId(int leaveId) {
        this.leaveId = leaveId;
    }
    public String getLeaveName() {
        return leaveName;
    }
    public void setLeaveName(String leaveName) {
        this.leaveName = leaveName;
    }
    public Date getLeaveStart() {
        return leaveStart;
    }
    public void setLeaveStart(Date leaveStart) {
        this.leaveStart = leaveStart;
    }
    public Date getLeaveEnd() {
        return leaveEnd;
    }
    public void setLeaveEnd(Date leaveEnd) {
        this.leaveEnd = leaveEnd;
    }
    public String getLeaveReason() {
        return leaveReason;
    }
    public void setLeaveReason(String leaveReason) {
        this.leaveReason = leaveReason;
    }
    public String getLeavePerson() {
        return leavePerson;
    }
    public void setLeavePerson(String leavePerson) {
        this.leavePerson = leavePerson;
    }
    public Date getLeaveTime() {
        return leaveTime;
    }
    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }
}
